package com.friends.utils.validate.controller;

import com.friends.utils.validate.controller.request.ValidTestRequest;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zhao Tianhao
 * @version 2024/04/09 11:29
 **/
@RestController
@RequestMapping("/friend")
public class TestController {

    @PostMapping("/valid-test")
    public Object validTest(@RequestBody ValidTestRequest validTestRequest) {
        return "success";
    }
}